﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using UIT.ScrumTool.DTO;

namespace UIT.ScrumTool.Service.Interface
{
    [ServiceContract]
    public interface IDocumentService
    {
        [OperationContract]
        List<DocumentDto> DocumentGetByAll();

        [OperationContract]
        List<DocumentDto> DocumentGetByProjectId(int projectId);

        [OperationContract]
        DocumentDto DocumentGetById(int id);

        [OperationContract]
        List<DocumentDto> DocumentGetByTop(string top, string where, string order);

        [OperationContract]
        bool DocumentInsert(DocumentDto document);

        [OperationContract]
        bool DocumentUpdate(DocumentDto document);

        [OperationContract]
        bool DocumentDelete(int id);

        [OperationContract]
        bool DocumentDeleteProjectId(int projectId);
    }
}
